package com.neuedu.shixun.hospital2.service.Impl;

import com.neuedu.shixun.hospital2.entity.Depart;
import com.neuedu.shixun.hospital2.repository.DepartRepository;
import com.neuedu.shixun.hospital2.service.DepartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartImpl implements DepartService{
    @Autowired
    private DepartRepository departRepository;
    @Override
    public List<Depart> getAll() {
        return departRepository.findAll();
    }
}
